Projection

class Projection

Collection of [Spherical Mercator](http://docs.openlayers.org/library/spherical_mercator.html) projection methods.

Functions

coordinateForProjectedMeters
Link copied to clipboard
open fun coordinateForProjectedMeters(projectedMeters: ProjectedMeters): Point
Calculate a longitude-latitude pair for a Spherical Mercator projectedmeters.
getMetersPerPixelAtLatitude
Link copied to clipboard
open fun getMetersPerPixelAtLatitude(latitude: Double, zoom: Double): Double
Calculate distance spanned by one pixel at the specified latitudeand zoom level.
project
Link copied to clipboard
open fun project(coordinate: Point, zoomScale: Double): MercatorCoordinate
Calculate a point on the map in Mercator Projection for a givencoordinate at the specified zoom scale.
projectedMetersForCoordinate
Link copied to clipboard
open fun projectedMetersForCoordinate(coordinate: Point): ProjectedMeters
Calculate Spherical Mercator ProjectedMeters coordinates.
unproject
Link copied to clipboard
open fun unproject(coordinate: MercatorCoordinate, zoomScale: Double): Point
Calculate a coordinate for a given point on the map in Mercator Projection.